<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
  <head>

    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>
      Shoppe商城-综合网购首选-正品低价、品质保证、配送及时、轻松购物
    </title>
    <link rel="icon" href="./static/img/common/favicon.ico" />
    <link rel="stylesheet" href="./css/base.css" />
    <link rel="stylesheet" href="css/common.css" />
    <link rel="stylesheet" href="./css/success.css" />
    <script src="jquery/jquery-3.6.0.js"></script>
  </head>
  <body>
  <!-- 顶部模块start -->
  <%@include file="/page/common/top.jsp"%>
  <!-- 顶部模块end -->
  <!-- nav 搜索模块start -->
  <%@include file="page/common/search.jsp"%>
  <!-- nav 搜索模块end -->
    <!-- 标题 start -->
    <div class="title">
        <div class="w iconfont">
          <em class="em1">&#xe735;</em><em class="em2">结算成功</em>
        </div>
      </div>
      <div class="w">
          <div class="success">
            <c:if test="${not empty sessionScope.lastOrder&&sessionScope.lastOrder.price!=0}">
                <div class="empty clearfix" v-else>
                  <img src="./static/img/order_success/success.png" alt="">
                  <p class="empty1">订单支付成功<br>
                    <em class="em1">${sessionScope.lastOrder.price}</em><br>
                    <em class="em2">仓库正在为您备货中</em>
                  </p>
                  <div class="but">
                    <a href="orderServlet?action=listOrder">查看订单</a>
                </div>
                </div>
              </c:if>
            <c:if test="${empty sessionScope.lastOrder||sessionScope.lastOrder.price==0}">
              <div class="empty clearfix" v-else>
                <img src="./static/img/order_success/nosuccess.png" alt="">
                <p class="empty1">订单支付失败<br>
                  <em class="em2">请重新支付</em>
                </p>
                <div class="but">
                  <a href="orderServlet?action=listOrder">查看订单</a>
                </div>
              </div>
            </c:if>
          </div>
      </div>
    <!-- 标题 end -->
  <!-- 页脚开始 -->
  <%@include file="page/common/bottom.jsp"%>
  <!-- 页脚结束 -->
    <script src="js/common.js"></script>
    <script src="js/vue.js"></script>
    <script src="js/cart.js"></script>
  </body>
</html>